package leecode.stringAndArray.doublepoint;

public class ReverseString {
    public static void main(String[] args) {

    }

    /*双指针反转数组*/
    public static void reverseString(char[] s) {
        int i=0,j=s.length-1;
        char temp;
        while(i<j){
            temp=s[i];
            s[i]=s[j];
            s[j]=temp;
            i++;
            j--;
        }
    }
}
